import request from '@/utils/request'

// 查询保前安全评测列表
export function listInsurance_before(query) {
  return request({
    url: '/insurance/insurance_before/list',
    method: 'get',
    params: query
  })
}

// 查询保前安全评测详细
export function getInsurance_before(evaluateBeforeId) {
  return request({
    url: '/insurance/insurance_before/' + evaluateBeforeId,
    method: 'get'
  })
}

// 新增保前安全评测
export function addInsurance_before(data) {
  return request({
    url: '/insurance/insurance_before',
    method: 'post',
    data: data
  })
}

// 修改保前安全评测
export function updateInsurance_before(data) {
  return request({
    url: '/insurance/insurance_before',
    method: 'put',
    data: data
  })
}

// 删除保前安全评测
export function delInsurance_before(evaluateBeforeId) {
  return request({
    url: '/insurance/insurance_before/' + evaluateBeforeId,
    method: 'delete'
  })
}
